<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="box">分销管理</div>
    <p></p>
    <!-- 没有设置宽高的div -->
    <div class="item"></div>

    <style>
        .box {
            width: 100px;
            height: 30px;
            background: #0f0;
            text-align: center;
            line-height: 30px;
            position: relative;
        }

        .box::before {
            position: absolute;
            content: '';
            display: block;
            width: 0;
            height: 0;
            border: 15px solid transparent;
            border-left: 15px solid #fff;
            left: 0;
            top: 0;

        }

        .box::after {
            position: absolute;
            content: '';
            display: block;
            width: 0;
            height: 0;
            border: 15px solid transparent;
            border-left: 15px solid #0f0;
            right: -32px;
            top: 0;
        }

        .item {
            width: 0;
            height: 0;
            border: 30px solid transparent;
            border-left-color: #f00;
            border-right-color: #0f0;
            border-top-color: #00f;
            border-bottom-color: #ff0;
        }
    </style>
</body>

</html>